from django.urls import path
from .views import (ListProjectsView, CreateProjectView, ProjectDetailView, UpdateProjectView, DeleteProjectView)

urlpatterns = [
    path('', ListProjectsView.as_view(), name='project-list'), # 列出所有项目
    path('create/', CreateProjectView.as_view(), name='project-create'), # 创建新项目
    path('detail/<str:project_id>/', ProjectDetailView.as_view(), name='project-detail'), # 查看项目详情
    path('update/<str:project_id>/', UpdateProjectView.as_view(), name='project-update'), # 更新项目
    path('delete/', DeleteProjectView.as_view(), name='project-delete'), # 删除项目
]
